package com.woniuxy.micropurchaseserver.purchaseordermsg.mapper;

import com.woniuxy.micropurchaseserver.bean.PurchaseOrderBean;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PurchaseOrderMapper {
    public List<PurchaseOrderBean> findAllPurchaseOrder(@Param("porder") PurchaseOrderBean purchaseOrderBean);

    @Delete("delete from t_purchase_order_info where id=#{id}")
    public Integer DeletePurchaseOrderById(Integer id);

    public Integer UpdatePurchaseOrder(@Param("porder") PurchaseOrderBean purchaseOrderBean);

    public Long InsertPurchaseOrder(PurchaseOrderBean purchaseOrderBean);
}
